package com.fengxing.ams.web.facade.mouble.major;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;

public interface ICollegeMajorDAO extends PagingAndSortingRepository<CollegeMajorVO, Integer>, JpaSpecificationExecutor<CollegeMajorVO>{

	@Query(value = "select  t.id, t.description_name, t.introduction, t.college_id, t.description_id, t.college_name from zyt_college_major t where t.description_id = :description_id order by t.college_order limit 0, 20", nativeQuery=true)
	List<CollegeMajorVO> getMapByDescriptionId(@Param("description_id") Integer description_id);

}
